<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>供应链管理系统_用户登录</title>
    <style type="text/css">
        body {
            margin: 0;
            overflow: hidden;
        }
    </style>
    <script type="text/JavaScript">
        /*function MM_preloadimages() { //v3.0
            var d = document;
            if (d.images) {
                if (!d.MM_p) d.MM_p = new Array();
                var i, j = d.MM_p.length, a = MM_preloadimages / arguments;
                for (i = 0; i < a.length; i++)
                    if (a[i].indexOf("#") != 0) {
                        d.MM_p[j] = new Image;
                        d.MM_p[j++].src = a[i];
                    }
            }
        }

        function MM_swapImgRestore() { //v3.0
            var i, x, a = document.MM_sr;
            for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
        }

        function MM_findObj(n, d) { //v4.01
            var p, i, x;
            if (!d) d = document;
            if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
                d = parent.frames[n.substring(p + 1)].document;
                n = n.substring(0, p);
            }
            if (!(x = d[n]) && d.all) x = d.all[n];
            for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
            for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
            if (!x && d.getElementById) x = d.getElementById(n);
            return x;
        }

        function MM_swapImage() { //v3.0
            var i, j = 0, x, a = MM_swapImage.arguments;
            document.MM_sr = new Array;
            for (i = 0; i < (a.length - 2); i += 3)
                if ((x = MM_findObj(a[i])) != null) {
                    document.MM_sr[j++] = x;
                    if (!x.oSrc) x.oSrc = x.src;
                    x.src = a[i + 2];
                }
        }*/
    </script>
    <%-- <c:if test="${requestScope.message}!=null">
         <c:out value="<script>alert(' + ${requestScope.massage} + ');</script>" />
     </c:if>--%>

</head>
<body <%--onload="MM_preloadimages('/images/login/login_09_1.gif','/images/login/login_10_1.gif')"--%>>
<form method="post" action="${pageContext.request.contextPath}/loginSubmit">
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="height: 607px;" align="center" background="/images/login/login_02.gif">
                <table width="974" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td style="height: 331px" background="/images/login/login_01.jpg">&nbsp;</td>
                    </tr>
                    <tr>
                        <td height="116">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="393" height="116" background="/images/login/login_05.gif">&nbsp;</td>
                                    <td width="174">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td height="81" background="/images/login/login_06.gif">
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td width="24%">
                                                                <div align="center"><font
                                                                        style="height:1px;font-size:9pt; color:#bfdbeb;filter:glow(color=#1070a3,strength=1)">用户</font>
                                                                </div>
                                                            </td>
                                                            <td width="76%" height="25"><input type="text"
                                                                                               name="username"
                                                                                               style="width:125px; height:20px; background:#32a2e3; font-size:12px; border:solid 1px #0468a7; color:#14649f;">
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <div align="center"><font
                                                                        style="height:1px;font-size:9pt; color:#bfdbeb;filter:glow(color=#1070a3,strength=1)">密码</font>
                                                                </div>
                                                            </td>
                                                            <td height="25"><input type="password" name="password"
                                                                                   style="width:125px; height:20px; background:#32a2e3; font-size:12px; border:solid 1px #0468a7; color:#14649f;">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="35">
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td width="50" height="35"><img
                                                                    src="/images/login/login_08.gif" width="50"
                                                                    height="35"></td>
                                                            <td width="46"><input type="image"
                                                                                  src="/images/login/login_09.gif"
                                                                                  name="Image1" width="46" height="35"
                                                                                  border="0" id="Image1"
                                                                                  onMouseOver="MM_swapImage('Image1','','/images/login/login_09_1.gif',1)"
                                                                                  onMouseOut="MM_swapImgRestore()"/>
                                                            </td>
                                                            <td width="45"><a href="#"><img
                                                                    src="/images/login/login_10.gif" name="Image2"
                                                                    width="45" height="35" border="0" id="Image2"
                                                                    onMouseOver="MM_swapImage('Image2','','images/login/login_10_1.gif',1)"
                                                                    onMouseOut="MM_swapImgRestore()"></a></td>
                                                            <td width="33"><img src="/images/login/login_11.gif"
                                                                                width="33" height="35"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="407"
                                        background="${pageContext.request.contextPath}/images/login/login_07.gif">&nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="160" background="/images/login/login_12.gif">&nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td bgcolor="#02609c">&nbsp;</td>
        </tr>
    </table>
</form>
</body>
<%
    if (request.getAttribute("message") != null) {
        String msg = (String) request.getAttribute("message");
        out.write("<script>alert('" + msg + "');</script>");
    }
%>
</html>
